﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Infra.Tools.LanguageImporter
{
    public enum StatusType
    {
        Information,
        Step,
        Success,
        Error
    }

    public class StatusEventArgs : EventArgs
    {
        public StatusEventArgs(string message)
            : this(StatusType.Information, message)
        {
        }

        public StatusEventArgs(StatusType type, string message)
        {
            this.Type = type;
            this.Message = message;
        }

        public StatusEventArgs(Exception error)
        {
            this.Type = StatusType.Error;
            this.Error = error;
        }

        public StatusType Type { get; private set; }
        public string Message { get; private set; }
        public Exception Error { get; private set; }
    }
}
